package com._51cto.healthy.mapper;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.pojo.Food;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodMapper extends BaseMapper<Food> {
    //分页查询
    List<Food> findAll(@Param("query") String query);
    //根据id删除

    @Override
    int deleteByPK(@Param("id") Integer pk);

    @Override
    int insert(Food entity);

    @Override
    int update(Food entity);
}
